package com.example.demo.study.opp;

public class Car extends Vehicle {
    String modelName = "Muster";

    @Override
    public void run() {
        super.run();
        System.out.println("Car is running");
    }

    public static void main(String[] args) {
        Car car = new Car();
        car.setBrand("BM");
        car.getBrand();
        car.run();
        car.stop();
        System.out.println(car.modelName); // Ausgabe: Muster

    }
}
